package cn.moningxi.bean;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * customer_login_log
 *
 * @author
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class CustomerLoginLog implements Serializable {
    /**
     * 登录日志主键ID
     */
    private Integer loginId;

    /**
     * 消费者ID
     */
    private String customerId;

    /**
     * 消费者详细信息
     */
    private CustomerInfomation customerInfomation;

    /**
     * 登陆时间
     */
    private LocalDateTime loginTime;

    /**
     * 登录IP
     */
    private String loginIp;

    /**
     * 登陆状态( 0表示未登陆成功 1表示登录成功)
     */
    private Integer loginType;

    private static final long serialVersionUID = 1L;

    public CustomerLoginLog(Integer loginId, String customerId, LocalDateTime loginTime, String loginIp, Integer loginType) {
        this.loginId = loginId;
        this.customerId = customerId;
        this.loginTime = loginTime;
        this.loginIp = loginIp;
        this.loginType = loginType;
    }
}